<?php
namespace app\admin\controller;

use app\admin\logic\GoodsPropLogic;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;
//属性页
class GoodsProp{
    public function goodProp(){
        //拼接where语句
        list($where,$whereOr)=GoodsPropLogic::propWhere();
        //查询语句
        $prop=\app\admin\model\GoodsProp::propList($where,$whereOr);
        //分属性值
        $prop=GoodsPropLogic::propValues($prop);
        //属性值sql语句
        $pvalues=\app\admin\model\GoodsProp::propValues();
        View::assign('pvalues',$pvalues);
        //留值
        $data=GoodsPropLogic::propData();
        View::assign($data);
        View::assign('prop',$prop);
        return View::fetch();
    }

}